package com.hchw.a01.state;

import lombok.Data;

/**
 * @ClassName : StateMachine
 * @Description :
 * @Author : Felix Huang
 * @Date: 2021-08-15 19:03
 */
@Data
public class StateMachine {

    private State state = null;

    /**
     * 包含流程处理需要的业务数据对象, 可以传递到具体的状态中去
     */
    private Object businessVO = null;

    public void doWork(){
        this.state.doWork(this);
    }
}
